<!-- PayCell -->
<template>
  <view class="PayCell flex flex-m flex-m" @click="handleClick">
    <view class="flex-1">
      <view class="title">
        <slot name="title">{{ title }}</slot>
      </view>
      <view class="desc">
        <slot name="desc">{{ desc }}</slot>
      </view>
    </view>
    <yy-check :check="check" />
  </view>
</template>

<script>
  export default {
    name: 'PayCell',
    props: {
      title: String,
      desc: String,
      check: {
        type: Boolean,
        default: false
      }
    },
    data() {
      return {}
    },
    methods: {
      handleClick() {
        this.$emit('click')
      }
    }
  }
</script>
<style lang="scss" scoped>
  .PayCell {
    width: 100%;
    height: 134rpx;
    padding-left: 30rpx;
    padding-right: 30rpx;
    box-sizing: border-box;
    background: #fff;
    .title {
      font-size: 30rpx;
      color: #000;
    }
    .desc {
      font-size: 26rpx;
      color: #888;
    }
  }
</style>
